package sj;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

//@Getter
//@Setter
//账本，账户
public class Account {
    private final Lock lock = new ReentrantLock();
    private int balance;

    public Lock getLock() {
        return lock;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public Account(int balance) {
        this.balance = balance;
    }
}
